﻿using System;
using System.Windows.Data;
using System.Windows.Media;
using System.Windows;

namespace Kaesoft.Hospedaje.Common
{
    public class BoolToBoldConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value == null || !(value is bool))
                return "Normal";
                        
            var valor = (bool)value;

            if (!valor)
                return "Normal";
            else
                return "Bold";
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return null;
        }
    }
}